<?php
/**
 * CreateTime: 2022/7/4 11:09
 */

namespace App\Tools\Token;

class LoginToken
{
    public function setToken($staffId){
        return "sid_".$staffId."_".
            md5($staffId).
            "_uid_".
            md5("staff_2a20@3!030/*……￥…}“《》LL`1").
            md5("staff");
    }

    public function setDeptToken($staffId){
        return "sid_".$staffId."_".md5($staffId)."_uid_".md5("dept_2a20@3!030/*……￥…}“《》LL`2").md5("dept");
    }


    public function setDingTalkToken($dingTalkId){
        return "sid_".$dingTalkId."_".md5($dingTalkId)."_uid_".md5("dept_2a20@3!030/*……￥…}“《》LL`3").md5("dingTalk");
    }
}